#include "../stdafx.h"

namespace Exception
{

NoSolutionException::NoSolutionException()
{

}

NoSolutionException::NoSolutionException(const PathFinding::NodeList& closedList)
{
	for(PathFinding::NodeList::const_iterator i=closedList.begin();i!=closedList.end();i++)
	{
		_blacklist.insert(i->Position);
	}
}

const std::set<PathFinding::Point>& NoSolutionException::getBlackList() const
{
	return _blacklist;
}

}
